import request from '@/utils/request'

// 查询企业离退休人员列表
export function listRetired_employee(query) {
  return request({
    url: '/report/retired_employee/list',
    method: 'get',
    params: query
  })
}

// 查询企业离退休人员详细
export function getRetired_employee(id) {
  return request({
    url: '/report/retired_employee/' + id,
    method: 'get'
  })
}

// 新增企业离退休人员
export function addRetired_employee(data) {
  return request({
    url: '/report/retired_employee',
    method: 'post',
    data: data
  })
}

// 修改企业离退休人员
export function updateRetired_employee(data) {
  return request({
    url: '/report/retired_employee',
    method: 'put',
    data: data
  })
}

// 删除企业离退休人员
export function delRetired_employee(id) {
  return request({
    url: '/report/retired_employee/' + id,
    method: 'delete'
  })
}
